package com.grademaster.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.grademaster.common.R;
import com.grademaster.dto.CollegePageDto;
import com.grademaster.entity.Colleges;
import org.springframework.http.ResponseEntity;

/**
* @author Administrator
* @description 针对表【colleges(学院表)】的数据库操作Service
* @createDate 2024-06-25 13:56:57
*/
public interface CollegesService extends IService<Colleges> {
    /**
     * 查询所有学院
     * @return
     */
    R getAllColleges();

    /**
     * 分页查询学院
     * @param collegePageDto
     * @return
     */
    R getAllCollegesByPage(CollegePageDto collegePageDto);


    /**
     * 添加或修改
     * @return
     */
    R addorEditCollege(Colleges colleges);

    /**
     * 删除学院
     * @param collegeId
     * @return
     */
    R deleteCollege(String collegeId);

    /**
     * 导出学院
     * @param collegePageDto
     * @return
     */
    ResponseEntity exportExcel(CollegePageDto collegePageDto);
}
